package com.rytx.system.domain.ysp;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rytx.common.annotation.Excel;
import com.rytx.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;

/**
 * 用户收藏对象 art_favorite
 * 
 * @author rytx
 * @date 2024-05-22
 */
public class ArtFavorite extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收藏ID */
    private Long favoriteId;

    /** 用户ID */
    @Excel(name = "用户ID")
    @NotBlank(message = "用户ID不能为空")
    private Long userId;

    /** 艺术品ID */
    @Excel(name = "艺术品ID")
    @NotBlank(message = "艺术品ID不能为空")
    private Long artId;

    /** 收藏时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date favoritedAt;

    private String status;

    public void setFavoriteId(Long favoriteId) 
    {
        this.favoriteId = favoriteId;
    }

    public Long getFavoriteId() 
    {
        return favoriteId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setArtId(Long artId) 
    {
        this.artId = artId;
    }

    public Long getArtId() 
    {
        return artId;
    }
    public void setFavoritedAt(Date favoritedAt) 
    {
        this.favoritedAt = favoritedAt;
    }

    public Date getFavoritedAt() 
    {
        return favoritedAt;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("favoriteId", getFavoriteId())
            .append("userId", getUserId())
            .append("artId", getArtId())
            .append("favoritedAt", getFavoritedAt())
            .toString();
    }
}
